-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trains #110
Trains #110
Conversation
Straight for road and rail: Based on the start and end MapProject, a dot will appear that indicates a straight connection from the selected MapProject. Curved connection ProjectState: When clicking on any MapProject and Ground or Intersection, a straight road would be created. Now an interpolation point needs to be set. Function for line line intersection With four points, representing two lines, the intersection of these two lines is calculated Function for line closed point Given two points representing one line and one point, the closed point on the line from the third point is calculated.
Substitute functions Vec2::{line_line_intersection, line_closed_point} with Line::{intersection_point, project}
Make costum trains of any length for any persose. Make commuter, freight or high speed trains.
Something old
reletive to ground and reletive to start
Thank you for this (big!) contribution. |
Hey so I finally got to review. The code looks good but I have a bit of feedback about the UI.
Anyway all of these aren't blockers, the game is still in development after all and all these can be fixed later on. Still a good foundation! I'm going to merge this. |
I Wasn't planning on making a pr, but here I am.
The first thing i did, was making a tool to make straight road connections. It looks better for both rail and highway infrastructure. I would like to enforce something like this for realistic looking rail.
The second thing are custom trains. The toolbox contains a train editor. Trains consist of rolling-stock. Anyone can add
rolling-stock in base_mod/rollingstock.lua
. I would like a similar thing for road vehicles.Give me some help with the GUI related programming.